package xyz.molzhao.crypt;

import org.springframework.stereotype.Service;
import xyz.molzhao.util.DataDesensitizationUtils;

@Service
public class AESCryptImpl implements Crypt {
    @Override
    public String encrypt(String plain) {
        return DataDesensitizationUtils.encrypt(plain);
    }

    @Override
    public String decrypt(String cipher) {
        return DataDesensitizationUtils.decrypt(cipher);
    }
}
